<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    if (path.length() > 0) path = path.substring(0, path.length() - 1);
%>

<jsp:include flush="true" page="/view/inc/incTop.jsp"/>
<!-- head-->


<!--body-->
<div class="container well" style="background:#fff;padding-top:0px;">
    <h2>搜索结果</h2>
    <div class="row text-center" style="margin-left:-19px;margin-right:-19px;">
        <hr style="margin-top:0">
        <s:iterator value="#request.goodList" var="good">
            <div class="col-sm-2 col-md-2 col-lg-2 col-xs-3" style="padding:6px">
                <div class="thumbnail">
                    <a href="<%=path %>/goodDetail.action?goodId=<s:property value="#good.goodId"/>">
                        <img style="height: 120px;" src="<%=path %>${good.goodPic}"
                             alt="Thumbnail Image 1" class="img-responsive"/>
                    </a>
                    <div class="caption">
                        <h4 style="height: 20px;overflow: hidden;"><s:property value="#good.goodName"/></h4>
                        <p>￥<s:property value="#good.goodPrice"/></p>
                        <p><a href="<%=path %>/good/goodDetail.action?goodId=<s:property value="#good.goodId"/>"
                              class="btn btn-primary" role="button">
                            <span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Add to Cart</a>
                        </p>
                    </div>
                </div>
            </div>
        </s:iterator>
    </div>
    <jsp:include page="/common/page.jsp" flush="true"/>
</div>

<jsp:include flush="true" page="/view/inc/incFoot.jsp"/>

